package com.cbhb.sys;

import java.util.Arrays;
import java.util.Stack;

public class PrintNumbers {

    public static int[] printNumbers(int n) {
        int size = (int)Math.pow(10,n)-1;
        int[] ints = new int[size];
        for(int i = 0; i< size; i++) {
            ints[i] = i+1;
        }
        return ints;
    }

    public static void main(String[] args) {
        Arrays.stream(printNumbers(2)).asLongStream().forEach(System.out::println);
        System.out.println(printNumbers(2));
    }
}
